import request from './axios.js';

export const login = (data) => {
  return request({
    url: '/dev-api/loginByPassword',
    method: 'post',
    data: data

  })
}
export const bannerList = (params) => {
  return request({
    url: '/dev-api/young/banner/h5/list',
    method: 'get',
    params: {
      ...params
    }

  })
}
export const productList = (params) => {
  return request({
    url: '/dev-api/young/product/h5/list',
    method: 'get',
    params: {
      ...params
    }

  })
}
